namespace RBAC.Domain.HXJX
{
    using System;
    using System.ComponentModel.DataAnnotations.Schema;

    /// <summary>
    /// 生产工单BOM明细
    /// </summary>
    [Table("ProductionWorkOrderBomItem")]
    public class ProductionWorkOrderBomItem : BaseEntity
    {
        /// <summary>
        /// 关联工单Id
        /// </summary>
        public long WorkOrderId { get; set; }

        /// <summary>
        /// 行号
        /// </summary>
        public int LineNo { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public long? MaterialId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? Spec { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 用量（需求数量）
        /// </summary>
        public decimal? Qty { get; set; }

        /// <summary>
        /// 损耗率（%）
        /// </summary>
        public decimal? LossRate { get; set; }

        /// <summary>
        /// 计划发料仓Id
        /// </summary>
        public long? WarehouseId { get; set; }

        /// <summary>
        /// 计划发料仓名称
        /// </summary>
        public string? WarehouseName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
